package com.arlen.conf;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

//@ComponentScan("javax.sql")
//@Configuration
public class MyDataSource {

    @Autowired
    DataSource dataSource;

//    @Bean
  //  @ConfigurationProperties(prefix = "spring.datasource")
    //@Bean
    public DruidDataSource getDataSource(){
        return new DruidDataSource();
    }

//    @ComponentScan("javax.sql")
//    public void show(){}


}
